Klasse ResultPage

java.lang.Object
com.inet.pdfc.results.ResultPage
Alle implementierten Schnittstellen:
Serializable

@JsonData public class ResultPage extends Object implements Serializable
A page result contains all information for a page in a compares document. Since the actual comparison result is not bound to pages, the result itself is not part of a ResultPage.
Siehe auch:
  • Konstruktordetails

    • ResultPage

      protected ResultPage(com.inet.pdfc.generator.message.PageData data, com.inet.pdfc.generator.rendercache.PageImageCache renderSource, ResultModel model)
      Creates a page for the ResultModel
      Parameter:
      data - the page data as passed by the comparer, must not be null
      renderSource - the render source to query for page images, must not be null
      model - the actual comparison model this page belongs to
      Seit:
      i-net PDFC 3.0
    • ResultPage

      protected ResultPage()
      Create uninitialized page
      Seit:
      i-net PDFC 3.0
  • Methodendetails

    • setData

      protected void setData(com.inet.pdfc.generator.message.PageData data)
      Copies the page data into the ResultPage
      Parameter:
      data - the data to be copied, must not be null
      Seit:
      i-net PDFC 3.0
    • getWidth

      public int getWidth()
      Returns the unscaled width of the page in pixel
      Gibt zurück:
      the unscaled width of the page in pixel
      Seit:
      i-net PDFC 3.0
    • getHeight

      public int getHeight()
      Returns the unscaled height of the page in pixel
      Gibt zurück:
      the unscaled height of the page in pixel
      Seit:
      i-net PDFC 3.0
    • getPageOffset

      public int getPageOffset()
      Returns the page offset which is the absolute rendering position in side by side mode. It's the sum of the max-height of all page-pairs before this one
      Gibt zurück:
      the page offset which is the absolute rendering position in side by side mode
      Seit:
      i-net PDFC 3.0
    • setPageOffset

      protected void setPageOffset(int yOffset)
      Updates the page offset. The page offset is the total distance from the top of the page to the start of the document in pixels (without page gaps).
      Parameter:
      yOffset - the page offset of the page in pixels
      Seit:
      i-net PDFC 3.0
      Siehe auch:
    • getPageIndex

      public int getPageIndex()
      Returns the zero based page index of this page
      Gibt zurück:
      the zero based page index of this page
      Seit:
      i-net PDFC 3.0
    • getHighlights

      public List<HighlightData.Highlight> getHighlights()
      Returns a list with all highlights for this page
      Gibt zurück:
      a list with all highlights for this page or null if there are no highlights
      Seit:
      i-net PDFC 3.0
    • getPageImage

      public @Nullable BufferedImage getPageImage(double scale)
      Renders the page to a BufferedImage.
      Parameter:
      scale - the scale factor
      Gibt zurück:
      the rendered page as image or null if not found
      Seit:
      i-net PDFC 3.0
    • getPageImage

      public @Nullable BufferedImage getPageImage(double scaleX, double scaleY)
      Renders the page to a BufferedImage. This mehtod allowes a change in the aspect ratio of the returned image
      Parameter:
      scaleX - the scale factor along the X axis
      scaleY - the scale factor along the Y axis
      Gibt zurück:
      the rendered page as image or null if not found
      Seit:
      i-net PDFC 3.2
    • renderPage

      public void renderPage(double scale, Graphics2D g2)
      Renders the page to a BufferedImage.
      Parameter:
      scale - the scale factor
      g2 - the graphics instance which will be used for rendering
      Seit:
      i-net PDFC 3.0
    • getSize

      public Dimension getSize()
      Returns the size of the page in pixels, unscaled
      Gibt zurück:
      the size of the page in pixels, unscaled
      Seit:
      i-net PDFC 3.0
    • hasPageImage

      public boolean hasPageImage()
      Returns whether the page image cache contains an image for this page
      Gibt zurück:
      whether the page image cache contains an image for this page
      Seit:
      i-net PDFC 3.0
    • getTextInfos

      protected List<? extends TextInfo> getTextInfos()
      Returns the text infos required to select and copy text
      Gibt zurück:
      the text infos required to select and copy text
      Seit:
      4.0
    • isLeft

      public boolean isLeft()
      Check whether this page is on the left side or on the right side.
      Gibt zurück:
      true if this page is on the left (first) side, false if it is on the right (second) side
      Seit:
      i-net PDFC 3.2
    • setModel

      public void setModel(ResultModel model)
      Sets the model as well as the renderSource of this page
      Parameter:
      model - the model to set
      Seit:
      i-net PDFC 4.0